From fb24cff814fb82ba27c7206bdcfbcd092f8592c4 Mon Sep 17 00:00:00 2001 From: robertl Date: Wed, 23 Jun 2010 06:21:31 +0000 Subject: [PATCH] More igo8 test coverage. --- testo.d/classic-4.test | 12 ------------ testo.d/igo8.test | 15 +++++++++++++++ testo.d/sbn.test | 9 +++++++++ 3 files changed, 24 insertions(+), 12 deletions(-) create mode 100644 testo.d/igo8.test create mode 100644 testo.d/sbn.test diff --git a/testo.d/classic-4.test b/testo.d/classic-4.test index 8ea5220cd..001534e93 100755 --- a/testo.d/classic-4.test +++ b/testo.d/classic-4.test @@ -114,18 +114,6 @@ compare ${TMPDIR}/exif-dat.csv ${REFERENCE}/exif-dat.csv gpsbabel -i vidaone -f ${REFERENCE}/track/vidaone.gpb -t -o unicsv -F ${TMPDIR}/vidaone.csv compare ${TMPDIR}/vidaone.csv ${REFERENCE}/track/vidaone.csv -# iGo8 -# This format has some jitter in the first 64 bytes of the header. -# So we read our reference track, spin to GPX. -# Read that track, spin to igo. -# read the igo file we just wrote, and spin that to GPX. -# compare the two GPX files. -gpsbabel -i igo8 -f ${REFERENCE}/track/igo8.trk -o gpx -F ${TMPDIR}/igo.gpx -gpsbabel -i gpx -f ${TMPDIR}/igo.gpx -o igo8 -F ${TMPDIR}/new-igo.trk -gpsbabel -i igo8 -f ${TMPDIR}/new-igo.trk -o gpx -F ${TMPDIR}/new-igo2.gpx -compare ${TMPDIR}/igo.gpx ${TMPDIR}/new-igo2.gpx - - # GoPal # GoPal is a bit tricky, because it's a lossy format regarding the first field (timetick). # so we first read a reference gopal file, and then write it out as gopal trk file, now with a computed timestamp. diff --git a/testo.d/igo8.test b/testo.d/igo8.test new file mode 100644 index 000000000..85186666c --- /dev/null +++ b/testo.d/igo8.test @@ -0,0 +1,15 @@ +# iGo8 +# This format has some jitter in the first 64 bytes of the header. +# So we read our reference track, spin to GPX. +# Read that track, spin to igo. +# read the igo file we just wrote, and spin that to GPX. +# compare the two GPX files. +gpsbabel -i igo8 -f ${REFERENCE}/track/igo8.trk -o gpx -F ${TMPDIR}/igo.gpx +gpsbabel -i gpx -f ${TMPDIR}/igo.gpx -o igo8 -F ${TMPDIR}/new-igo.trk +gpsbabel -i igo8 -f ${TMPDIR}/new-igo.trk -o gpx -F ${TMPDIR}/new-igo2.gpx +compare ${TMPDIR}/igo.gpx ${TMPDIR}/new-igo2.gpx +# On 6/23/10, we received reports of IGO files that were trailing padded. +# verify that one such files converts sensibly to GPX. + +gpsbabel -i igo8 -f ${REFERENCE}/track/igo8_padded.trk -o gpx -F ${TMPDIR}/igo8_padded.gpx +compare reference/track/igo8_padded~gpx.gpx ${TMPDIR}/igo8_padded.gpx diff --git a/testo.d/sbn.test b/testo.d/sbn.test new file mode 100644 index 000000000..354cb3db4 --- /dev/null +++ b/testo.d/sbn.test @@ -0,0 +1,9 @@ +# +# SBN tracks (Locosys NaviGPS) +# +gpsbabel -t -i sbn -f ${REFERENCE}/track/sbn.SBN -o gpx -F ${TMPDIR}/sbn.gpx +compare ${TMPDIR}/sbn.gpx ${REFERENCE}/track/sbn.gpx + +# V1.3 of the firmware added two bytes in the packet +gpsbabel -t -i sbn -f ${REFERENCE}/track/sbn-v13.sbn -o gpx -F ${TMPDIR}/sbn-v13.gpx +compare ${TMPDIR}/sbn-v13.gpx ${REFERENCE}/track/sbn-v13.gpx -- 2.30.2